package org.kwisatz.proxybot.core;

import org.kwisatz.proxybot.User;

class UserImpl implements User, Comparable
{
	private String nick;
	private String host;
	private String user;
	
	private String realname;

	UserImpl(String login, String host, String nick, String realname)
	{
		user = login;
		this.host = host;
		this.nick = nick;
		this.realname = realname;
	}
	
	public String getHost() {
		return host;
	}
	
	public String getNick() {
		return nick;
	}
	
	public String getUser() {
		return user;
	}
	
	public String getRealname() {
		return realname;
	}
	
	public String toString() {
		return nick+ '!' +user+ '@' +host;
	}

	public int compareTo(Object arg0)
	{
		return nick.compareTo(((UserImpl)arg0).nick);
	}

	public String[] getChannels() {
		return null;
	}
}
